/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Layer which includes the logo-sprites
 * Also initializes the Common-module
 */

#ifndef SPLASHLAYER_H
#define SPLASHLAYER_H

#include "cocos2d.h"
#include <vector>

class SplashLayer : public cocos2d::CCLayer
{
public:
	// default constructor
	SplashLayer( cocos2d::CCScene *scene );
	// default destructor
	~SplashLayer();

	// initializes this layer
	void initLayer();
	// update the layer
	virtual void update( cocos2d::ccTime dt );

private:
	// master scene
	cocos2d::CCScene *mMaster;

	// background
	cocos2d::CCSprite *mBackground;

	// sprites used
	cocos2d::CCSprite *mUnitSprite;
	cocos2d::CCSprite *mLoadingIcon;
	// loading label
	cocos2d::CCLabelBMFont *mLoadingLabel;

	// time passed in this layer
	float mLayerTimePassed;
};

#endif